<!DOCTYPE html>
<html lang="Zh-cn">
<head>
	<meta charset="UTF-8">
	<title>yanzhengma</title>
</head>
<body>
	<!-- <img src="data:image/jpeg;base64," -->
	<img src="">
</body>
<script
  src="https://code.jquery.com/jquery-3.5.1.js"
  integrity="sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc="
  crossorigin="anonymous"></script>
  <script>
  	$.get("http://localhost:801/demo/server/php/yanzhengma.php",function(data){
  		 // var yzm = encodeURI(data);
  		 console.log(data);
  		 var tpdz = "data:image/jpeg;base64,"+data;
  		 $("img").attr("src",tpdz);
  	});
</script>
</html>